package com.xbongbong.pro.enums.raiders.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 价值攻略范围枚举
 * @author zcp
 * @version v1.0
 * @date 19/9/19 019 11:19
 * @update 19/9/19 019 11:19
 * @since v1.0
 */
@Getter
public enum RaidersRangeEnum {
    /**
     * 范围枚举，对应数据库内range字段
     */
    OWN_PUBLIC(1, "enum.raidersRange.name.own_public"),


    OWN_PRIVATE(2, "enum.raidersRange.name.own_private"),


    UNKNOWN(404, "enum.raidersRange.name.unknown"),

    ;

    /**
     * 枚举值 --
     */
    private final int code;
    /**
     * 枚举信息--中文名称
     */
    private final String name;

    RaidersRangeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
